﻿using System.ComponentModel;

namespace YL.Utils.Pub
{
    /// <summary>
    /// 接口响应状态
    /// </summary>
    public enum PubEnum
    {
        [Description("成功")]
        Success = 100,

        [Description("model验证失败返回")]
        Failed = 101,

        [Description("提示错误")]
        Error = 102
    }

    /// <summary>
    /// Excel版本
    /// </summary>
    public enum ExcelVersion
    {
        V2007,
        V2003
    }

    /// <summary>
    /// 
    /// </summary>
    public enum PubLevel
    {
        [Description("一级")]
        one = 1,

        [Description("二级")]
        two = 2,

        [Description("三级")]
        three = 3
    }

    /// <summary>
    /// 图片类型
    /// </summary>
    public enum LogType
    {
        [Description("登录")]
        login = 1,

        [Description("添加")]
        add = 2,

        [Description("修改")]
        update = 3,

        [Description("添加或修改")]
        addOrUpdate = add | update,

        [Description("删除")]
        delete = 4,

        [Description("删除")]
        select = 5,

        [Description("异常")]
        exception = 6,

        [Description("错误")]
        error = 7,

        [Description("导出")]
        export = 8,

        [Description("导入")]
        import = 9,

        [Description("上传")]
        upload = 10,

        [Description("下载")]
        download = 10,
    }

    /// <summary>
    /// 文章类型
    /// </summary>
    public enum ArticleType
    {
        [Description("单页")]
        singlePage = 1,
        
        [Description("列表页")]
        listPage = 2,

        [Description("广告")]
        ad = 3,
    }

    /// <summary>
    /// 
    /// </summary>
    public enum HttpStatus 
    {
        [Description("未找到页面")]
        status404 = 404,
        
        [Description("请求成功")]
        status200 = 200,

        [Description("请求跳转")]
        status302 = 302,
    }

    /// <summary>
    /// 常规http响应状态
    /// </summary>
    public enum HttpResultCode 
    {
        [Description("成功")]
        Success = 0,
        [Description("失败")]
        Fail = 1
    }

    /// <summary>
    /// 申请状态
    /// </summary>
    public enum ApplyStatus 
    {
        [Description("初始状态")]
        Default = 0,
        [Description("申请成功")]
        Success = 1,
        [Description("申请失败")]
        Fail = -1
    }
    
    /// <summary>
    /// 课程状态
    /// </summary>
    public enum CourseStatus 
    {
        [Description("弃用")]
        Disable = 0,
        [Description("启用")]
        Enable = 1
    }
    
}
